/*
 * Copyright © 2018 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
*/

@import '~styles/variables.scss';

$time-info-color: $grey-03;
$border-color: $grey-05;

.runs-list-container {
  padding: 10px 25px;

  .top-panel-data {
    padding: 5px 10px 15px;

    .title { font-size: 18px; }
    .time-info { color: $time-info-color; }
  }

  .list-view {
    .no-runs {
      margin-top: 30px;

      .icon-exclamation-triangle {
        margin-right: 5px;
      }
    }
  }

  .grid-wrapper {
    $global-header: 50px;
    $header: 70px;
    $graph-container: 384px;
    $data-top-panel: 60px;
    $footer: 54px;

    height: calc(100vh - #{$global-header} - #{$header} - #{$graph-container} - #{$data-top-panel} - #{$footer});
    min-height: 300px;

    .grid.grid-container {
      max-height: 100%;

      .grid-header {
        font-weight: bold;
        border-top: 1px solid $border-color;
        border-bottom: 2px solid $border-color;
      }

      .grid-body {
        .grid-row {
          padding: 0;

          > div { padding: 10px; }

          &:hover {
            background-color: white;
          }

          .icon-circle {
            margin-right: 5px;
          }
        }
      }
    }
  }
}
